package com.electric.base;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport {
	
	private String webRootPath;
	
	public String getWebRootPath() {
		return getWebClassesPath();
	}

	public void setWebRootPath(String webRootPath) {
		this.webRootPath = webRootPath;
	}

	private String getWebClassesPath() {
		String path = getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
		return path;
	}
}
